package config.center.core.annotation;

import java.lang.annotation.*;

/**
 * config center annotation
 *
 * @author gaowenhao
 * @since 2021/9/17 11:18
 */
@Documented
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface CenterConfig {

    /**
     * config key
     **/
    String key();

    /**
     * allow center config not exist when bootstrap
     **/
    boolean allowMiss() default false;

}
